const payChannel = {
    index: true,
    border: true,
    stripe: true,
    menuAlign: 'center',
    loadingText: "加载中...",
    loadingSpinner: "svg",
    loadingSvgViewBox: "-10, -10, 50, 50",
    loadingBackground: "rgba(122, 122, 122, 0.6)",
    labelWidth: 120,
    column: [
        {
            label: "ID",
            prop: "id",
            display: false,
            width: "55"
        },

        {
            label: "支付渠道编码",
            prop: "code",
            span: 12,
            search: true,
            searchLabelWidth: 120,
            rules: [
                {
                    required: true,
                    message: "请输入支付渠道编码",
                    trigger: "blur"
                }
            ]
        },
        {
            label: "支付渠道名称",
            prop: "name",
            span: 12,
            search: true,
            searchLabelWidth: 120,
            rules: [
                {
                    required: true,
                    message: "请输入支付渠道名称",
                    trigger: "blur"
                }
            ]
        },
        {
            label: "渠道状态",
            prop: "status",
            span: 12,
            search: true,
            searchLabelWidth: 120,
            searchType: "select",
            type: 'select',
            dicData: [
                {
                    label: '禁用',
                    value: 0
                },
                {
                    label: '启用',
                    value: 1
                },
            ],
            formatter: (row, value, column) => {
                return row.status ? '启用' : '禁用'
            },
            rules: [
                {
                    required: true,
                    message: "请选择渠道状态",
                    trigger: "change"
                }
            ]
        },
    ],
}

export default payChannel